﻿@using System.DirectoryServices
@model DirectoryEntry
@{
    ViewBag.Title = "title";
    var dic = Model.Properties.GetEnumerator();
    dic.Reset();
}
<fieldset>
    <legend>All Directory Attributes</legend>
    <br />
    <table>
        <thead>
            <tr>
                <th>
                    Attribute
                </th>
                <th>
                    Value
                </th>
            </tr>
        </thead>
        <tbody>
            @while (dic.MoveNext())
            {
                <tr>
                    <th>
                        @dic.Key
                    </th>
                    <td>
                        @{
                            var pvc = dic.Entry.Value as PropertyValueCollection;
                        }
                        @pvc.Value
                    </td>
                </tr>
            }
        </tbody>
    </table>
</fieldset>
